package com.ita.generator;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.ita.filter.CustomerFilter;

public class GeneratorImlp<Customer> implements Generator<Customer> {

	private CustomerFilter customerFilter=new CustomerFilter();

	public Set<Customer> generateSet(List<String> list) {

		Set<Customer> set = new HashSet<Customer>();
		List<Customer> cList = (List<Customer>) customerFilter.doFilter(list);

		for (int i = 0; i < cList.size(); i++) {
			Customer c = cList.get(i);
			set.add(c);
		}
		return set;

	}

}
